package com.idanchuang.component.config.apollo.util;

import com.idanchuang.component.config.apollo.ConfigService;
import com.idanchuang.spi.config.IConfig;

/**
 * @author yjy
 * @date 2019/12/5 11:19
 **/
public class ConfigUtil {

    private static IConfig configService;

    /**
     * @return 配置service
     */
    public static IConfig getConfig() {
        if (configService == null) {
            configService = SpringContextUtil.getBean(ConfigService.class);
        }
        return configService;
    }



}
